
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Linux时间服务器 · AGou's StudyNote</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="AGou">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Linux日志管理系统.html" />
    
    
    <link rel="prev" href="Linux配置文件.md" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://agou-ops.github.io" target="_blank" class="custom-link">◆点击进入我的个人博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Program_lang/">
            
                <a href="../Program_lang/">
            
                    
                        <b>1.2.</b>
                    
                    编程语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Program_lang/Python.html">
            
                <a href="../Program_lang/Python.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Program_lang/Java.html">
            
                <a href="../Program_lang/Java.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Program_lang/Splash_Lua.html">
            
                <a href="../Program_lang/Splash_Lua.html">
            
                    
                        <b>1.2.3.</b>
                    
                    Splash_Lua
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Database/">
            
                <a href="../Database/">
            
                    
                        <b>1.3.</b>
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Database/Mysql、MariaDB/README.md">
            
                <span>
            
                    
                        <b>1.3.1.</b>
                    
                    Mysql/MariaDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                <a href="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                    
                        <b>1.3.1.1.</b>
                    
                    MySQL/MariaDB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../Database/Mysql、MariaDB/php-mysql.html">
            
                <a href="../Database/Mysql、MariaDB/php-mysql.html">
            
                    
                        <b>1.3.1.2.</b>
                    
                    php-mysql
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Database/MongoDB.html">
            
                <a href="../Database/MongoDB.html">
            
                    
                        <b>1.3.2.</b>
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Database/Redis.html">
            
                <a href="../Database/Redis.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.4.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Linux基础.html">
            
                <a href="Linux基础.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Linux基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                <a href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Linux启动流程、内核、grub、模块等
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Linux服务器.html">
            
                <a href="Linux服务器.html">
            
                    
                        <b>1.4.3.</b>
                    
                    Linux服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Linux状态信息.html">
            
                <a href="Linux状态信息.html">
            
                    
                        <b>1.4.4.</b>
                    
                    Linux状态信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="Linux网络客户端工具.html">
            
                <a href="Linux网络客户端工具.html">
            
                    
                        <b>1.4.5.</b>
                    
                    Linux网络客户端工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Linux网络配置.html">
            
                <a href="Linux网络配置.html">
            
                    
                        <b>1.4.6.</b>
                    
                    Linux网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Linux配置文件.md">
            
                <span>
            
                    
                        <b>1.4.7.</b>
                    
                    Linux配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.8" data-path="Linux时间服务器.html">
            
                <a href="Linux时间服务器.html">
            
                    
                        <b>1.4.8.</b>
                    
                    Linux时间服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Linux日志管理系统.html">
            
                <a href="Linux日志管理系统.html">
            
                    
                        <b>1.4.9.</b>
                    
                    Linux日志管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="sudo详解.html">
            
                <a href="sudo详解.html">
            
                    
                        <b>1.4.10.</b>
                    
                    sudo详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="SElinux.html">
            
                <a href="SElinux.html">
            
                    
                        <b>1.4.11.</b>
                    
                    SELinux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="iptables.html">
            
                <a href="iptables.html">
            
                    
                        <b>1.4.12.</b>
                    
                    iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="Linux_shell.html">
            
                <a href="Linux_shell.html">
            
                    
                        <b>1.4.13.</b>
                    
                    Linux Shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="shell_awk.html">
            
                <a href="shell_awk.html">
            
                    
                        <b>1.4.14.</b>
                    
                    shell_awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="OpenSSL、PKI搭建、算法.html">
            
                <a href="OpenSSL、PKI搭建、算法.html">
            
                    
                        <b>1.4.15.</b>
                    
                    OpenSSL、PKI搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="DNS服务器.html">
            
                <a href="DNS服务器.html">
            
                    
                        <b>1.4.16.</b>
                    
                    DNS服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="Frp内网穿透.html">
            
                <a href="Frp内网穿透.html">
            
                    
                        <b>1.4.17.</b>
                    
                    Frp内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="Linux其他.md">
            
                <span>
            
                    
                        <b>1.4.18.</b>
                    
                    Linux其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Linux_FileSystem/">
            
                <a href="../Linux_FileSystem/">
            
                    
                        <b>1.5.</b>
                    
                    Linux文件系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Linux_FileSystem/FTP.html">
            
                <a href="../Linux_FileSystem/FTP.html">
            
                    
                        <b>1.5.1.</b>
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Linux_FileSystem/SAMBA.html">
            
                <a href="../Linux_FileSystem/SAMBA.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SAMBA
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Linux_Tools/">
            
                <a href="../Linux_Tools/">
            
                    
                        <b>1.6.</b>
                    
                    Linux工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Linux_Tools/fzf工具.html">
            
                <a href="../Linux_Tools/fzf工具.html">
            
                    
                        <b>1.6.1.</b>
                    
                    fzf工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Linux_Tools/工具集合.html">
            
                <a href="../Linux_Tools/工具集合.html">
            
                    
                        <b>1.6.2.</b>
                    
                    Linux工具集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../WEB_Server/">
            
                <a href="../WEB_Server/">
            
                    
                        <b>1.7.</b>
                    
                    网站服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../WEB_Server/HTML基础.html">
            
                <a href="../WEB_Server/HTML基础.html">
            
                    
                        <b>1.7.1.</b>
                    
                    HTML基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../WEB_Server/WEB基础.html">
            
                <a href="../WEB_Server/WEB基础.html">
            
                    
                        <b>1.7.2.</b>
                    
                    WEB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../WEB_Server/httpd.html">
            
                <a href="../WEB_Server/httpd.html">
            
                    
                        <b>1.7.3.</b>
                    
                    httpd/Apache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../WEB_Server/httpd.conf文件详解.html">
            
                <a href="../WEB_Server/httpd.conf文件详解.html">
            
                    
                        <b>1.7.4.</b>
                    
                    httpd.conf文件详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../WEB_Server/Nginx.html">
            
                <a href="../WEB_Server/Nginx.html">
            
                    
                        <b>1.7.5.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../WEB_Server/HTTP状态码-详情.html">
            
                <a href="../WEB_Server/HTTP状态码-详情.html">
            
                    
                        <b>1.7.6.</b>
                    
                    HTTP状态码-详情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Common_Framework/">
            
                <a href="../Common_Framework/">
            
                    
                        <b>1.8.</b>
                    
                    常用框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Common_Framework/LNMP.html">
            
                <a href="../Common_Framework/LNMP.html">
            
                    
                        <b>1.8.1.</b>
                    
                    LNMP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Common_Framework/LAMP.html">
            
                <a href="../Common_Framework/LAMP.html">
            
                    
                        <b>1.8.2.</b>
                    
                    LAMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker&K8s/">
            
                <a href="../Docker&K8s/">
            
                    
                        <b>1.9.</b>
                    
                    容器及容器编排
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.1.</b>
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker&K8s/K8s/">
            
                <a href="../Docker&K8s/K8s/">
            
                    
                        <b>1.9.2.</b>
                    
                    K8s
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.2.1" data-path="../Docker&K8s/K8s/K8s基础知识.html">
            
                <a href="../Docker&K8s/K8s/K8s基础知识.html">
            
                    
                        <b>1.9.2.1.</b>
                    
                    K8s基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2.2" data-path="../Docker&K8s/K8s/K8s安装与部署.html">
            
                <a href="../Docker&K8s/K8s/K8s安装与部署.html">
            
                    
                        <b>1.9.2.2.</b>
                    
                    K8s安装与部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                        <b>1.10.</b>
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/Git基础.html">
            
                <a href="../Git/Git基础.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Git基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/GitLab服务器.html">
            
                <a href="../Git/GitLab服务器.html">
            
                    
                        <b>1.10.2.</b>
                    
                    GitLab服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Windows/">
            
                <a href="../Windows/">
            
                    
                        <b>1.11.</b>
                    
                    Windows系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Windows/cmd命令.html">
            
                <a href="../Windows/cmd命令.html">
            
                    
                        <b>1.11.1.</b>
                    
                    cmd命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Vim.html">
            
                <a href="../Vim.html">
            
                    
                        <b>1.12.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../i3WM快捷键.html">
            
                <a href="../i3WM快捷键.html">
            
                    
                        <b>1.13.</b>
                    
                    i3WM快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../ADB命令.html">
            
                <a href="../ADB命令.html">
            
                    
                        <b>1.14.</b>
                    
                    ADB命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Tmux.html">
            
                <a href="../Tmux.html">
            
                    
                        <b>1.15.</b>
                    
                    Tmux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../Kindle.html">
            
                <a href="../Kindle.html">
            
                    
                        <b>1.16.</b>
                    
                    Kindle越狱指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Other/">
            
                <a href="../Other/">
            
                    
                        <b>1.17.</b>
                    
                    Other
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Other/pandoc.html">
            
                <a href="../Other/pandoc.html">
            
                    
                        <b>1.17.1.</b>
                    
                    pandoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Other/jupyter&reveal.js.html">
            
                <a href="../Other/jupyter&reveal.js.html">
            
                    
                        <b>1.17.2.</b>
                    
                    jupyter & reveal.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../Other/json.html">
            
                <a href="../Other/json.html">
            
                    
                        <b>1.17.3.</b>
                    
                    json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../Other/Reveal_js.html">
            
                <a href="../Other/Reveal_js.html">
            
                    
                        <b>1.17.4.</b>
                    
                    Reveal_js
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Linux时间服务器</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;chrony">1. Linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;(chrony)</a></li><ul><li><a href="#chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;">1.1. chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;</a></li><li><a href="#&#x4F7F;&#x7528;">1.2. &#x4F7F;&#x7528;</a></li><ul><li><a href="#&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;">1.2.1. &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;</a></li><li><a href="#&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;">1.2.2. &#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;</a></li></ul><li><a href="#chronyc&#x547D;&#x4EE4;">1.3. chronyc&#x547D;&#x4EE4;</a></li><li><a href="#&#x5176;&#x4ED6;">1.4. &#x5176;&#x4ED6;</a></li><ul><li><a href="#&#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;">1.4.1. &#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;</a></li><li><a href="#&#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;">1.4.2. &#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;</a></li></ul></ul></ul></div><a href="#linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;chrony" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;chrony"><a name="linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;chrony" class="anchor-navigation-ex-anchor" href="#linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;chrony"><i class="fa fa-link" aria-hidden="true"></i></a>1. Linux&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;(chrony)</h1>
<blockquote>
<p>NTP&#x670D;&#x52A1;&#x5668;&#xFF1A;<a href="https://baike.baidu.com/item/NTP&#x670D;&#x52A1;&#x5668;/8633994?fr=aladdin" target="_blank">https://baike.baidu.com/item/NTP%E6%9C%8D%E5%8A%A1%E5%99%A8/8633994?fr=aladdin</a></p>
<p>chrony&#x5B98;&#x65B9;&#x7AD9;&#x70B9;&#xFF1A;<a href="https://chrony.tuxfamily.org/" target="_blank">https://chrony.tuxfamily.org/</a></p>
<p>&#x4E0E;&#x5176;&#x5B83;&#x65F6;&#x95F4;&#x540C;&#x6B65;&#x8F6F;&#x4EF6;&#x7684;&#x5BF9;&#x6BD4;&#xFF1A;<a href="https://chrony.tuxfamily.org/comparison.html" target="_blank">https://chrony.tuxfamily.org/comparison.html</a></p>
</blockquote>
<p>chrony &#x662F;&#x7F51;&#x7EDC;&#x65F6;&#x95F4;&#x534F;&#x8BAE;&#xFF08;NTP&#xFF09;&#x7684;&#x901A;&#x7528;&#x5B9E;&#x73B0;.</p>
<p>chrony &#x5305;&#x542B;&#x4E24;&#x4E2A;&#x7A0B;&#x5E8F;&#xFF1A;<code>chronyd</code> &#x662F;&#x4E00;&#x4E2A;&#x53EF;&#x4EE5;&#x5728;&#x542F;&#x52A8;&#x65F6;&#x542F;&#x52A8;&#x7684;&#x5B88;&#x62A4;&#x7A0B;&#x5E8F;;<code>chronyc</code> &#x662F;&#x4E00;&#x4E2A;&#x547D;&#x4EE4;&#x884C;&#x754C;&#x9762;&#x7A0B;&#x5E8F;&#xFF0C;&#x7528;&#x4E8E;&#x76D1;&#x89C6; chronyd &#x7684;&#x6027;&#x80FD;&#x5E76;&#x5728;&#x8FD0;&#x884C;&#x65F6;&#x66F4;&#x6539;&#x5404;&#x79CD;&#x64CD;&#x4F5C;&#x53C2;&#x6570;.</p>
<h2 id="chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;"><a name="chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. chrony&#x7684;&#x5B89;&#x88C5;&#x4E0E;&#x914D;&#x7F6E;</h2>
<pre class="language-"><code class="lang-bash">yum -y <span class="token function">install</span> chrony
systemctl <span class="token builtin class-name">enable</span> chronyd
systemctl start chronyd
</code></pre>
<h4 id="&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x6587;&#x4EF6;"><a name="&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x6587;&#x4EF6;" class="anchor-navigation-ex-anchor" href="#&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x6587;&#x4EF6;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x9ED8;&#x8BA4;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</h4>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x4F7F;&#x7528; pool.ntp.org &#x9879;&#x76EE;&#x4E2D;&#x7684;&#x516C;&#x5171;&#x670D;&#x52A1;&#x5668;&#x3002;&#x4EE5;server&#x5F00;&#xFF0C;&#x7406;&#x8BBA;&#x4E0A;&#x60F3;&#x6DFB;&#x52A0;&#x591A;&#x5C11;&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;&#x90FD;&#x53EF;&#x4EE5;&#x3002;</span>
<span class="token comment"># Use public servers from the pool.ntp.org project.</span>
<span class="token comment"># Please consider joining the pool (http://www.pool.ntp.org/join.html).</span>
server <span class="token number">0</span>.centos.pool.ntp.org iburst
server <span class="token number">1</span>.centos.pool.ntp.org iburst
server <span class="token number">2</span>.centos.pool.ntp.org iburst
server <span class="token number">3</span>.centos.pool.ntp.org iburst

<span class="token comment"># &#x6839;&#x636E;&#x5B9E;&#x9645;&#x65F6;&#x95F4;&#x8BA1;&#x7B97;&#x51FA;&#x670D;&#x52A1;&#x5668;&#x589E;&#x51CF;&#x65F6;&#x95F4;&#x7684;&#x6BD4;&#x7387;&#xFF0C;&#x7136;&#x540E;&#x8BB0;&#x5F55;&#x5230;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x5728;&#x7CFB;&#x7EDF;&#x91CD;&#x542F;&#x540E;&#x4E3A;&#x7CFB;&#x7EDF;&#x505A;&#x51FA;&#x6700;&#x4F73;&#x65F6;&#x95F4;&#x8865;&#x507F;&#x8C03;&#x6574;&#x3002;</span>
<span class="token comment"># Record the rate at which the system clock gains/losses time.</span>
driftfile /var/lib/chrony/drift

<span class="token comment"># &#x5982;&#x679C;&#x7CFB;&#x7EDF;&#x65F6;&#x949F;&#x7684;&#x504F;&#x79FB;&#x91CF;&#x5927;&#x4E8E;1&#x79D2;&#xFF0C;&#x5219;&#x5141;&#x8BB8;&#x7CFB;&#x7EDF;&#x65F6;&#x949F;&#x5728;&#x524D;&#x4E09;&#x6B21;&#x66F4;&#x65B0;&#x4E2D;&#x6B65;&#x8FDB;&#x3002;</span>
<span class="token comment"># Allow the system clock to be stepped in the first three updates if its offset is larger than 1 second.</span>
makestep <span class="token number">1.0</span> <span class="token number">3</span>

<span class="token comment"># &#x542F;&#x7528;&#x5B9E;&#x65F6;&#x65F6;&#x949F;&#xFF08;RTC&#xFF09;&#x7684;&#x5185;&#x6838;&#x540C;&#x6B65;&#x3002;</span>
<span class="token comment"># Enable kernel synchronization of the real-time clock (RTC).</span>
rtcsync

<span class="token comment"># &#x901A;&#x8FC7;&#x4F7F;&#x7528; hwtimestamp &#x6307;&#x4EE4;&#x542F;&#x7528;&#x786C;&#x4EF6;&#x65F6;&#x95F4;&#x6233;</span>
<span class="token comment"># Enable hardware timestamping on all interfaces that support it.</span>
<span class="token comment">#hwtimestamp *</span>

<span class="token comment"># Increase the minimum number of selectable sources required to adjust the system clock.</span>
<span class="token comment">#minsources 2</span>

<span class="token comment"># &#x6307;&#x5B9A; NTP &#x5BA2;&#x6237;&#x7AEF;&#x5730;&#x5740;&#xFF0C;&#x4EE5;&#x5141;&#x8BB8;&#x6216;&#x62D2;&#x7EDD;&#x8FDE;&#x63A5;&#x5230;&#x626E;&#x6F14;&#x65F6;&#x949F;&#x670D;&#x52A1;&#x5668;&#x7684;&#x673A;&#x5668;</span>
<span class="token comment"># Allow NTP client access from local network.</span>
<span class="token comment">#allow 192.168.0.0/16</span>

* Serve <span class="token function">time</span> even <span class="token keyword">if</span> not synchronized to a <span class="token function">time</span> source.
server&#x7AEF;&#x5373;&#x4F7F;&#x6CA1;&#x6709;&#x4ECE;&#x4E92;&#x8054;&#x7F51;&#x540C;&#x6B65;&#x5230;&#x65F6;&#x95F4;&#xFF0C;&#x4E5F;&#x4F5C;&#x4E3A;&#x4E0B;&#x7EA7;&#x7684;&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;
<span class="token comment">#local stratum 10</span>

<span class="token comment"># &#x6307;&#x5B9A;&#x5305;&#x542B; NTP &#x8EAB;&#x4EFD;&#x9A8C;&#x8BC1;&#x5BC6;&#x94A5;&#x7684;&#x6587;&#x4EF6;&#x3002;</span>
<span class="token comment"># Specify file containing keys for NTP authentication.</span>
<span class="token comment">#keyfile /etc/chrony.keys</span>

<span class="token comment"># &#x6307;&#x5B9A;&#x65E5;&#x5FD7;&#x6587;&#x4EF6;&#x7684;&#x76EE;&#x5F55;&#x3002;</span>
<span class="token comment"># Specify directory for log files.</span>
logdir /var/log/chrony

<span class="token comment"># &#x9009;&#x62E9;&#x65E5;&#x5FD7;&#x6587;&#x4EF6;&#x8981;&#x8BB0;&#x5F55;&#x7684;&#x4FE1;&#x606F;&#x3002;</span>
<span class="token comment"># Select which information is logged.</span>
<span class="token comment">#log measurements statistics tracking</span>
</code></pre>
<p>Aliyun&#x5B98;&#x65B9;ntp&#x955C;&#x50CF;&#x53CA;&#x914D;&#x7F6E;&#xFF1A;<a href="https://developer.aliyun.com/mirror/NTP?spm=a2c6h.13651102.0.0.53322f70KNkgwZ" target="_blank">https://developer.aliyun.com/mirror/NTP?spm=a2c6h.13651102.0.0.53322f70KNkgwZ</a></p>
<h2 id="&#x4F7F;&#x7528;"><a name="&#x4F7F;&#x7528;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x4F7F;&#x7528;</h2>
<p>ntp&#x7684;&#x4F7F;&#x7528;&#x53C2;&#x8003;&#xFF1A;<a href="https://www.cnblogs.com/jhxxb/p/10579816.html" target="_blank">https://www.cnblogs.com/jhxxb/p/10579816.html</a></p>
<h3 id="&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;"><a name="&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.1. &#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;</h3>
<p>&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x914D;&#x7F6E;&#x4EC5;&#x9700;&#x4FEE;&#x6539;&#x4E24;&#x5904;&#x5373;&#x53EF;</p>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x81EA;&#x5B9A;&#x4E49;&#x4E0A;&#x7EA7;&#x65F6;&#x95F4;&#x670D;&#x52A1;&#x5668;&#x5730;&#x5740;</span>
server s1a.time.edu.cn iburst
server ntp.aliyun.com iburst

<span class="token comment"># &#x5141;&#x8BB8;NTP&#x5BA2;&#x6237;&#x7AEF;&#x53EF;&#x4EE5;&#x8BBF;&#x95EE;&#x7684;&#x5730;&#x5740;</span>
allow <span class="token number">192.168</span>.8.0/24
</code></pre>
<p>&#x91CD;&#x542F;&#x670D;&#x52A1;<code>systemctl restart chronyd</code>&#x5373;&#x53EF;&#x4F5C;&#x4E3A;&#x670D;&#x52A1;&#x5668;&#x7AEF;&#x4F7F;&#x7528;</p>
<p>&#x540C;&#x6B65;&#xFF1A;</p>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x67E5;&#x770B;&#x65F6;&#x95F4;&#x540C;&#x6B65;&#x72B6;&#x6001;</span>
timedatectl status
<span class="token comment"># &#x5F00;&#x542F;&#x7F51;&#x7EDC;&#x65F6;&#x95F4;&#x540C;&#x6B65;</span>
timedatectl set-ntp <span class="token boolean">true</span>
</code></pre>
<h3 id="&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;"><a name="&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;" class="anchor-navigation-ex-anchor" href="#&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2.2. &#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;</h3>
<p>&#x5BA2;&#x6237;&#x7AEF;&#x914D;&#x7F6E;&#x4E5F;&#x53EA;&#x9700;&#x4FEE;&#x6539;&#x4E24;&#x5904;&#x5373;&#x53EF;</p>
<pre class="language-"><code class="lang-bash">server <span class="token number">172.16</span>.122.132 iburst
<span class="token comment"># Allow NTP client access from local network.</span>
allow <span class="token number">172.16</span>.122.132
</code></pre>
<p>&#x91CD;&#x542F;&#x670D;&#x52A1;.</p>
<p>&#x81EA;&#x52A8;&#x540C;&#x6B65;&#x547D;&#x4EE4;&#x548C;server&#x7AEF;&#x76F8;&#x540C;</p>
<h2 id="chronyc&#x547D;&#x4EE4;"><a name="chronyc&#x547D;&#x4EE4;" class="anchor-navigation-ex-anchor" href="#chronyc&#x547D;&#x4EE4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. chronyc&#x547D;&#x4EE4;</h2>
<p>&#x53EF;&#x4EE5;&#x4EA4;&#x4E92;&#x5F0F;&#x4F7F;&#x7528;&#xFF0C;&#x4E5F;&#x53EF;&#x4EE5;&#x52A0;&#x53C2;&#x6570;&#x4F7F;&#x7528;.</p>
<p>&#x67E5;&#x770B;</p>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x67E5;&#x770B; ntp_servers</span>
chronyc sources -v
<span class="token comment"># &#x67E5;&#x770B; ntp_servers &#x8BE6;&#x7EC6;&#x72B6;&#x6001;</span>
chronyc sourcestats -v
<span class="token comment"># &#x67E5;&#x770B; ntp_servers &#x662F;&#x5426;&#x5728;&#x7EBF;</span>
chronyc activity -v
<span class="token comment"># &#x67E5;&#x770B; ntp &#x8BE6;&#x7EC6;&#x4FE1;&#x606F;</span>
chronyc tracking -v
</code></pre>
<h2 id="&#x5176;&#x4ED6;"><a name="&#x5176;&#x4ED6;" class="anchor-navigation-ex-anchor" href="#&#x5176;&#x4ED6;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4. &#x5176;&#x4ED6;</h2>
<h3 id="&#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;"><a name="&#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;" class="anchor-navigation-ex-anchor" href="#&#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.1. &#x624B;&#x52A8;&#x4FEE;&#x6539;&#x672C;&#x673A;&#x65F6;&#x95F4;</h3>
<p>&#x4F7F;&#x7528;<code>date</code>&#x624B;&#x52A8;&#x8C03;&#x8282;&#x672C;&#x5730;&#x65F6;&#x95F4;&#xFF08;&#x5B58;&#x5728;&#x8BEF;&#x5DEE;&#xFF0C;&#x4E0D;&#x63A8;&#x8350;&#x4F7F;&#x7528;&#xD7;&#xFF09;</p>
<pre class="language-"><code class="lang-bash"><span class="token function">date</span> -s <span class="token string">&quot;2019-12-17 14:34:24&quot;</span>
<span class="token comment"># &#x6216;&#x8005;&#x4F7F;&#x7528;</span>
timedatectl set-time <span class="token string">&quot;2019-12-17 14:34:24&quot;</span>
<span class="token comment"># &#x5C06;&#x65F6;&#x95F4;&#x5199;&#x5165;bios&#xFF0C;&#x9632;&#x6B62;&#x91CD;&#x542F;&#x540E;&#x4FEE;&#x6539;&#x7684;&#x65F6;&#x95F4;&#x65E0;&#x6548;</span>
hwclock -w
</code></pre>
<p>&#x4F7F;&#x7528;<code>ntpdate</code>&#x547D;&#x4EE4;&#x540C;&#x6B65;</p>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x4F7F;&#x7528;ntpdate&#x547D;&#x4EE4;&#x9996;&#x5148;&#x8981;&#x5B89;&#x88C5;&#x597D;ntp</span>
ntpdate -dv ntp.aliyun.com            <span class="token comment"># -d&#x8868;&#x793A;&#x5F00;&#x542F;debug&#xFF0C;-v&#x663E;&#x793A;&#x8BE6;&#x7EC6;&#x4FE1;&#x606F;</span>
</code></pre>
<h3 id="&#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;"><a name="&#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;" class="anchor-navigation-ex-anchor" href="#&#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;"><i class="fa fa-link" aria-hidden="true"></i></a>1.4.2. &#x8BBE;&#x7F6E;&#x672C;&#x673A;&#x65F6;&#x533A;</h3>
<blockquote>
<p><strong>&#x76F8;&#x5173;&#x65F6;&#x533A;&#x77E5;&#x8BC6;&#xFF1A;</strong></p>
<p>GMT(Greenwich Mean Time&#xFF0C;&#x683C;&#x6797;&#x5A01;&#x6CBB;&#x6807;&#x51C6;&#x65F6;&#x95F4;): 
&#x662F;&#x6307;&#x4F4D;&#x4E8E;&#x82F1;&#x56FD;&#x4F26;&#x6566;&#x90CA;&#x533A;&#x7684;&#x7687;&#x5BB6;&#x683C;&#x6797;&#x5C3C;&#x6CBB;&#x5929;&#x6587;&#x53F0;&#x7684;&#x6807;&#x51C6;&#x65F6;&#x95F4;&#xFF0C;&#x56E0;&#x4E3A;&#x672C;&#x521D;&#x5B50;&#x5348;&#x7EBF;&#x88AB;&#x5B9A;&#x4E49;&#x5728;&#x901A;&#x8FC7;&#x90A3;&#x91CC;&#x7684;&#x7ECF;&#x7EBF;&#x3002;
UTC(Universal Time/Temps Cordonn&#xE9; &#x4E16;&#x754C;&#x6807;&#x51C6;&#x65F6;&#x95F4;)
CST(Central Standard Time &#x570B;&#x5BB6;&#x6A19;&#x6E96;&#x6642;&#x9593;&#xFF0C;&#x4E00;&#x8AAA;&#x4E2D;&#x539F;&#x6A19;&#x6E96;&#x6642;&#x9593;); &#x4E2D;&#x56FD;&#x6807;&#x51C6;&#x65F6;&#x95F4;&#xFF08;China 
Standard Time&#xFF09;
GMT + 8 = UTC + 8 = CST</p>
</blockquote>
<ul>
<li>&#x590D;&#x5236;&#x76F8;&#x5E94;&#x7684;&#x65F6;&#x533A;&#x6587;&#x4EF6;&#xFF0C;&#x66FF;&#x6362;&#x7CFB;&#x7EDF;&#x65F6;&#x533A;&#x6587;&#x4EF6;&#xFF0C;&#x6216;&#x8005;&#x521B;&#x5EFA;&#x94FE;&#x63A5;&#x6587;&#x4EF6;</li>
</ul>
<pre class="language-"><code class="lang-bash"><span class="token comment"># &#x683C;&#x5F0F;</span>
<span class="token function">cp</span> /usr/share/zoneinfo/<span class="token operator">&lt;</span>&#x4E3B;&#x65F6;&#x533A;<span class="token operator">&gt;</span>/<span class="token operator">&lt;</span>&#x6B21;&#x65F6;&#x533A; <span class="token operator">&gt;</span>/etc/localtime
<span class="token comment"># &#x4F8B;&#x5982;&#xFF1A;&#x5728;&#x8BBE;&#x7F6E;&#x4E2D;&#x56FD;&#x65F6;&#x533A;&#x4F7F;&#x7528;&#x4E9A;&#x6D32;/&#x4E0A;&#x6D77;&#xFF08;+8&#xFF09;</span>
<span class="token function">cp</span> /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
</code></pre>
<ul>
<li>&#x4F7F;&#x7528;<code>timedatectl</code>&#x8BBE;&#x7F6E;</li>
</ul>
<pre class="language-"><code class="lang-bash"><span class="token comment"># timedatectl&#x4E0D;&#x52A0;&#x4EFB;&#x4F55;&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x672C;&#x673A;&#x65F6;&#x95F4;&#xFF0C;&#x7EDF;&#x4E00;&#x65F6;&#x95F4;&#xFF0C;&#x65F6;&#x533A;&#x7B49;&#x6709;&#x5173;&#x4FE1;&#x606F;&#xFF0C;&#x7B49;&#x540C;&#x4E8E;timedatectl status</span>
timedatectl

<span class="token comment"># &#x67E5;&#x770B;&#x5F53;&#x524D;&#x65F6;&#x533A;</span>
<span class="token function">date</span>
<span class="token function">date</span> -R            <span class="token comment"># -R&#x53C2;&#x6570;&#x53EF;&#x4EE5;&#x67E5;&#x770B;&#x65E5;&#x671F;&#x548C;&#x65F6;&#x95F4; RFC 2822 &#x683C;&#x5F0F;</span>

<span class="token comment"># &#x67E5;&#x770B;&#x672C;&#x673A;&#x6240;&#x6709;&#x65F6;&#x533A;</span>
<span class="token function">ls</span> /usr/share/zoneinfo
<span class="token comment"># &#x6216;&#x8005;&#x4F7F;&#x7528;</span>
timedatectl list-timezones

<span class="token comment"># &#x8BBE;&#x7F6E;&#x65F6;&#x533A;</span>
timedatectl set-timezone Asia/Shanghai

<span class="token comment"># &#x5F00;&#x542F;&#x6216;&#x5173;&#x95ED; NTP</span>
timedatectl set-ntp true/flase
</code></pre>
<ul>
<li>&#x4F7F;&#x7528;<code>tzselect</code>&#x4EA4;&#x4E92;&#x5F0F;&#x4FEE;&#x6539;&#xFF0C;&#x76F4;&#x63A5;&#x5728;&#x7EC8;&#x7AEF;&#x8F93;&#x5165;&#x5373;&#x53EF;&#x4F7F;&#x7528;&#xFF0C;&#x4F7F;&#x5176;&#x6C38;&#x4E45;&#x751F;&#x6548;&#xFF0C;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;</li>
</ul>
<pre class="language-"><code class="lang-bash"><span class="token comment">####</span>
<span class="token assign-left variable">TZ</span><span class="token operator">=</span><span class="token string">&apos;Asia/Hong_Kong&apos;</span><span class="token punctuation">;</span> <span class="token builtin class-name">export</span> TZ
<span class="token comment">####</span>
*  &#x5C06;&#x4EE5;&#x4E0A;&#x5185;&#x5BB9;&#x6DFB;&#x52A0;&#x5230;&#x5BB6;&#x76EE;&#x5F55;&#x4E0B;&#x7684;<span class="token variable"><span class="token variable">`</span>.profile<span class="token variable">`</span></span>&#x6587;&#x4EF6;&#x4E2D;<span class="token punctuation">(</span>bash&#x5BF9;&#x5E94;&#x52A0;&#x5230;<span class="token variable"><span class="token variable">`</span>.bash_profile<span class="token variable">`</span></span><span class="token punctuation">)</span>&#xFF0C;&#x7136;&#x540E;&#x91CD;&#x65B0;&#x767B;&#x51FA;&#x767B;&#x5165;&#x5373;&#x53EF;
</code></pre>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; AGou 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-03-02 20:42:24
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Linux配置文件.md" class="navigation navigation-prev " aria-label="Previous page: Linux配置文件">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Linux日志管理系统.html" class="navigation navigation-next " aria-label="Next page: Linux日志管理系统">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Linux时间服务器","level":"1.4.8","depth":2,"next":{"title":"Linux日志管理系统","level":"1.4.9","depth":2,"path":"Linux/Linux日志管理系统.md","ref":"Linux/Linux日志管理系统.md","articles":[]},"previous":{"title":"Linux配置文件","level":"1.4.7","depth":2,"path":"Linux/Linux配置文件.md","ref":"Linux/Linux配置文件.md","articles":[]},"dir":"ltr"},"config":{"plugins":["github@^2.0.0","edit-link@^2.0.2","anchors@^0.7.1","include-codeblock@^3.0.2","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","anchor-navigation-ex@0.1.8","prism","-highlight","insert-logo","-lunr","-search","search-pro","splitter","lightbox","github-buttons","-sharing","sharing-plus","donate","code","-klipse","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © AGou 2020","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"github":{"url":"https://github.com/AGou-ops"},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"https://agou-ops.github.io/images/alipay.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://agou-ops.github.io/images/wechatpay.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"isRewritePageTitle":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"lightbox":{"jquery":true,"sameUuid":false},"github-buttons":{"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"edit-link":{"label":"Edit This Page","base":"https://github.com/AGou-ops/myStudyNote"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"https://s2.ax1x.com/2019/12/10/QBD0xO.jpg"}},"theme":"default","author":"AGou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AGou's StudyNote","language":"zh-hans","output.name":"site","links":{"sidebar":{"◆点击进入我的个人博客":"http://agou-ops.github.io"}},"gitbook":"3.2.3","description":"岂能尽如人意，但求无愧我心。"},"file":{"path":"Linux/Linux时间服务器.md","mtime":"2020-03-02T12:42:24.288Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-02T12:42:32.383Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

